<form method="post" name="fileupload" action="{:U('portal/Page/doUploadTemp','channelId='.$channelId)}" enctype="multipart/form-data" onsubmit="return doUpload()">
    <ul style="width:420px;" class="L">
        <li class="li pb10">
            <div class="cr" style="width:80px;"><strong>选择文件：</strong></div>
            <div class="cl" style="width:320px;">
                <input name="uploadfile" type="file" id="file" class="in_put"/>
            </div>
            <div class="C"></div>
        </li>
        <li class="li pt10">
            <div class="cl" style="width:80px;">&nbsp;</div>
            <div class="cl" style="width:320px;">
                <input type="hidden" name="type" value="{$type}" />
                <input type="submit" name="submit" value="提交" class="btn_sea"/>
                <input type="reset"  name="reset" value="取消" class="btn_sea" onclick="$.tbox.close()"/>
            </div>
            <div class="C"></div>
        </li>
    </ul>
</form>
<script language="javascript" type="text/javascript">
function doUpload(){
	if($('#file').val() == '') {
		alert('请选择上传文件');
		return false;
	}
	
	return true;
}
</script>
